package game.manager 
{
	/**
	 * ...
	 * @author gcxk721
	 */
	public class GameNameManager 
	{
		
		private static var instance:GameNameManager;

        private var _gameNameType:String;
        private var _gameName:String;
		
		public function GameNameManager() 
		{
			if (instance != null)
			{
				throw new Error("single instance");
			}
			this.gameNameType = "";
		}
		
		public function get gameNameType():String
		{
            return this._gameNameType;
        }
		
        public function get gameName():String
		{
            return this._gameName;
        }
		
        public function set gameNameType(type : String):void
		{
            this._gameNameType = type;
            if (this._gameNameType == "")
			{
                //this._gameName = "醉西游";
                this._gameName = "xyfy";
            } 
			else 
			{
                if (this._gameNameType == "bd")
				{
                    //this._gameName = "逆龙战";
					this._gameName = "xyfy";
                }
            }
        }

		public static function getInstance() : GameNameManager
		{
			if (instance == null)
			{
				instance = new GameNameManager();
			}
			return instance;
		}
		
	}

}